<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.prime.com.tr/ui"> 
	
<h:head>	
<title> Universidade de Brasilia FGA </title>
</h:head>

    <p:panel>
<center>
<p:graphicImage value="imagens/gama_header1.png"/>
        

<h1>#{msgs.campoCabecalho}</h1>  
<h3>#{msgs.campoInicioLogin}</h3>

 

<h:body>  
        <f:view locale="#{localeController.currentLocale}" />
<h:form>  
    
   

    <p:panel id="panel" style="margin-bottom:10px;">  
     
       	<h3>#{msgs.campoAdministrador}</h3><br/>
        
        <h:panelGrid columns="3"> 
         
         
            <h:outputLabel for="id" value="#{msgs.campoID}" />  
            <p:inputText id="id" label="id">  
                <f:validateLength minimum="2" />  
            </p:inputText>  
            <p:message for="id" />  
              
            <h:outputLabel for="senha" value="#{msgs.campoSenha}" />  
            <p:password id="senha" label="Senha" feedback="Campo Senha obrigatória" minLength="4" /> 
            <p:commandButton action="administrador.xhtml" ajax="false" value="Login" />  
            <p:message for="senha" />  
	
        </h:panelGrid>  
	    <br/>    
        
 		<h3>#{msgs.campoAlunos}</h3>        
		<h:outputLabel for="cadastro" value="#{msgs.campoCadastro}" />       		
     	<p:commandButton action="tela1.xhtml" ajax="false" value="#{msgs.campoResponder}"/> 
     	<br/>	
     	
    </p:panel>  
<hr size="8" width="50%" />
<h6>#{msgs.campoEnderecoUnB}</h6>

    <p:commandLink update="panel" action="#{localeController.portugueseLocale}">
		<p:graphicImage title="Portugues-BR" value="/imagens/bandeira-brasil.png" />
    </p:commandLink>

    <p:commandLink update="panel" action="#{localeController.spanishLocale}">
		<p:graphicImage title="Español-ES" value="/imagens/bandeira-espanha.png" />
    </p:commandLink>

    <p:commandLink update="panel" action="#{localeController.englishLocale}">
		<p:graphicImage title="English-US" value="/imagens/bandeira-eua.png" />
    </p:commandLink>


</h:form>

    
</h:body>


</center>
</p:panel>

</html>